//
//  JobDesctiptionTableViewCell.m
//  XRSquare
//
//  Created by UaenaMo on 2018/8/15.
//  Copyright © 2018年 UaenaMo. All rights reserved.
//

#import "JobDesctiptionTableViewCell.h"

@interface JobDesctiptionTableViewCell ()
{
    UILabel * leftLabel;
    UILabel * rightLabel;
}
@end

@implementation JobDesctiptionTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        leftLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, ScreenWidth, 20)];
        leftLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:leftLabel];
        
        rightLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, ScreenWidth - 20, 20)];
        rightLabel.font = [UIFont systemFontOfSize:15];
        rightLabel.textColor = [UIColor colorFromHexCode:@"b3b3b3"];
        rightLabel.textAlignment = NSTextAlignmentRight;
        [self addSubview:rightLabel];
        
        UIView * line = [[UIView alloc]initWithFrame:CGRectMake(0, 39, ScreenWidth, 1)];
        line.backgroundColor = [UIColor colorFromHexCode:@"f3f3f3"];
        [self addSubview:line];
    }
    return self;
}

+(CGFloat)height
{
    return 40;
}

-(void)loadData:(NSString *)left right:(NSString *)right
{
    leftLabel.text = left;
    rightLabel.text = [NSString stringWithFormat:@"%@",right];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
